package t327.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import t327.mapper.ProductionPlanmapper;
import t327.pojo.ProductionPlan;
import t327.service.iter.IproductionplanService;

import java.util.List;


@Service
@Transactional
public class productionplanServiceImpl implements IproductionplanService {
    @Autowired
    private ProductionPlanmapper productionPlanmapper;
    @Override
    public List<ProductionPlan> queryAll() {
        return productionPlanmapper.queryAll();
    }

    @Override
    public int deleteproductionplanById(Long productionPlanId) {
        return productionPlanmapper.logicDeleteProductionPlanById(productionPlanId);
    }

    @Override
    public int addproductionplan(ProductionPlan productionPlan) {
        return productionPlanmapper.addproductionplan(productionPlan);
    }

    @Override
    public int updateproductionplan(ProductionPlan productionPlan) {
        return productionPlanmapper.updateproductionplan(productionPlan);
    }
}
